package com.sls.nzdapplication.model;


import com.alibaba.fastjson.JSONObject;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class WorkLine {

    @Id
    private String id;

    private String name;

    private String type;

    private String createTime;

    private String createBy;

    private Date modifyTime;

    private String modifyBy;

    public JSONObject toJson(){
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("id",this.id);
        jsonObject.put("name",this.name);
        jsonObject.put("createTime",this.createTime);
        jsonObject.put("createBy",this.createBy);
        jsonObject.put("modifyTime",this.modifyTime);
        jsonObject.put("modifyBy",this.modifyBy);
        return jsonObject;
    }

    public WorkLine(JSONObject jsonObject){
        this.id = jsonObject.getString("id");
        this.name = jsonObject.getString("name");
        this.createTime = jsonObject.getString("createTime");
        this.createBy = jsonObject.getString("createBy");
        this.modifyBy = jsonObject.getString("modifyBy");
        this.modifyTime = jsonObject.getDate("modifyTime");
    }

    @Generated(hash = 802151206)
    public WorkLine(String id, String name, String type, String createTime,
            String createBy, Date modifyTime, String modifyBy) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.createTime = createTime;
        this.createBy = createBy;
        this.modifyTime = modifyTime;
        this.modifyBy = modifyBy;
    }

    @Generated(hash = 1272458214)
    public WorkLine() {
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return this.createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getModifyTime() {
        return this.modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getModifyBy() {
        return this.modifyBy;
    }

    public void setModifyBy(String modifyBy) {
        this.modifyBy = modifyBy;
    }


   
}
